package jpg1980.gttunes.actions;

import java.util.List;

import jpg1980.gttunes.beans.Manufacturer;
import jpg1980.gttunes.beans.Track;
import jpg1980.gttunes.beans.TuneBasic;
import jpg1980.gttunes.dao.DaoFactory;
import jpg1980.gttunes.dao.ManufacturerDao;
import jpg1980.gttunes.dao.TrackDao;
import jpg1980.gttunes.dao.TuneBasicDao;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;

public class TrackAction extends ActionSupport
{
	private static final long serialVersionUID = 1L;

	static Logger logger = Logger.getLogger(TrackAction.class);

	List<Track> trackList;

	public String jsonList()
	{
		TrackDao trackDao = DaoFactory.getDaoFactory().getTrackDao();
		trackList = trackDao.readAll();

		return "json_list";
	}

	public List<Track> getTrackList()
	{
		return trackList;
	}

	public void setTrackList(List<Track> trackList)
	{
		this.trackList = trackList;
	}

}
